package router

import (
	"k8s-admin/controller/assetsmanagement"
	"k8s-admin/middleware"

	"github.com/gin-gonic/gin"
)

func Assetsmanagement(r *gin.Engine) {
	assets := r.Group("/assetsmanagement")
	assets.Use(middleware.ChecKToken(), middleware.CasbinMiddle())
	{
		assets.POST("create", assetsmanagement.AssetsManagementCreate)
		assets.GET("list", assetsmanagement.AssetsManagementList)
		assets.DELETE("delete", assetsmanagement.AssetsManagementDelete)
		assets.PUT("update", assetsmanagement.AssetsManagementUpdate)
		/*
			// 遗弃接口
			assets.GET("getlocalhostcpuinfo", assetsmanagement.GetLocalHostCpuInfo)
			assets.GET("getlocalhostcpuusagerate", assetsmanagement.GETLocalHostCpuUsageRate)
			assets.GET("getlocalhostcpuusageratedetail", assetsmanagement.GETLocalHostCpuUsageRateDetail)
			assets.GET("gethostcpuusagerates", assetsmanagement.GETCPUUsageRates)
		*/
		assets.GET("getassetsmanagementinfoall", assetsmanagement.AssetsManagementInfoAll)
		assets.GET("assetsmanagement_heartBeat", assetsmanagement.HeartBeat)

	}

}
